<admintpl file="header" />
<link rel="stylesheet" href="__PUBLIC__/js/jquery-ui-1.12/jquery-ui.css" />
<link rel="stylesheet" href="__PUBLIC__/js/sco.js/css/scojs.css" />
</head>
<style>
.tooltip{
	width: 319px;
}
</style>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('index')}">目标网站列表</a></li>
			<li class="active"><a href="#">编辑</a></li>
		</ul>
		<form action="{:U('edit')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
					<input type="hidden" value="{$Think.get.id}" name='id' />
						<tr>
							<th width="80">名称</th>
							<td>
								<input type="text" style="width: 400px;" name="post[name]" id="title" value="{$info.name}" placeholder=""/>
								<span class="form-required">*</span>
							</td>
						</tr>
						<tr>
							<th width="80">链接地址</th>
							<td>
								<input type="text" style="width: 400px;" name="post[url]" id="title" value="{$info.url}" placeholder=""/>
								<span class="form-required">*</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="form-actions">
				<button class="btn btn-primary ajax-post" target-form='form-horizontal' type="submit">提交</button>
				<a class="btn" href="{:U('index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
	<script type="text/javascript">
	 validateForm({
	      rule:{
	  		'post[key]' : {required : 1},
	  		},
	      message:{
		'post[key]' : {required : '请填写关键词'},
		}
	 },"{:U('index')}")	
	</script>
</body>
</html>